import axios from "axios";
const config = require("./base");
//----------------------论文级别类型-----------------------------------------
export function _paperTypeList() {
  return axios.get(config.api.paper_type_list);
}
export function _addPaperType(data) {
  return axios.post(config.api.add_paper_type, data);
}
export function _updatePaperType(id, data) {
  return axios.post(config.api.update_paper_type + `?id=${id}`, data);
}
export function _delPaperType(id) {
  return axios.get(config.api.del_paper_type + `?id=${id}`);
}
//*******************获取用户名****************** */

export function _getUserName() {
  return axios.get(config.api.get_user_name);
}
//**************************************************** */
export function _addPaper(data) {
  return axios.post(config.api.add_paper, data);
}
export function _delPaper(id) {
  return axios.get(config.api.del_paper + `?id=${id}`);
}

export function _myPaperList(id) {
  return axios.get(config.api.my_p_list + `?id=${id}`);
}

export function _paperList() {
  return axios.get(config.api.paper_list);
}


